<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('/home/index');
});

Route::get('/admin','admin\AdminController@index'); 

//后台用户管理界面
Route::controller('/admin/user','admin\UserController');

//后台商品管理界面
Route::controller('/admin/goods','admin\GoodsController');

// 后台订单
Route::controller('/admin/order','admin\OrderController');

//后台分类管理
Route::controller('/admin/cate','admin\CateController');


//验证码
Route::get('/code','CodeController@index');
//注册
Route::controller('/home/zhuce','home\ZhuceController');